﻿using System.Data.Entity.ModelConfiguration;

namespace CubicFWNet.Data.Models.Mapping
{
    public class InventoryChangeApplyMap : EntityTypeConfiguration<InventoryChangeApply>
    {
        public InventoryChangeApplyMap()
        {
            this.HasKey(t => t.Id);
            this.Property(t => t.Memo)
               .HasMaxLength(1024);
            this.ToTable("InventoryChangeApply");
            this.Property(t => t.OrderId).HasColumnName("OrderId");
            this.Property(t => t.ProductId).HasColumnName("ProductId");
            this.Property(t => t.ApplyAmount).HasColumnName("ApplyAmount");
            this.Property(t => t.FinishAmount).HasColumnName("FinishAmount");
            this.Property(t => t.ApplyTime).HasColumnName("ApplyTime");
            this.Property(t => t.CreateTime).HasColumnName("CreateTime");
            this.Property(t => t.CreatorId).HasColumnName("CreatorID");
            this.Property(t => t.Status).HasColumnName("Status");
            this.Property(t => t.Memo).HasColumnName("Memo");
        }
    }
}
